//
//  SDWebImageTool.h
//  jieshuibao
//
//  Created by 边文辉 on 2016/11/16.
//  Copyright © 2016年 com.jieshuibao1. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "UIImageView+WebCache.h"


typedef  void (^SDCompletedBlock) ();

typedef  void (^SDDownloadCompletedBlock) (UIImage *image, NSError *error, BOOL finished);

@interface SDWebImageTool : NSObject

/**
 cookid 重新登录后 配置
 */
+ (void)refreshCookieId:(NSString *)cookieId;


/**
 类方法

 @param imageView 要设置图片的view
 @param path 图片上级路径
 @param name 图片路径
 @param placeholder 本地占位图名
 @param show 展示进度
 */
+ (void)imageView:(UIImageView *)imageView setImageWithUrlPath:(NSString *)path
          nameUrl:(NSString *)name placeHolder:(NSString *)placeholder showProgress:(BOOL)show;



+ (void)newImageView:(UIImageView *)imageView setImageWithUrlPath:(NSString *)path
             nameUrl:(NSString *)name placeHolder:(NSString *)placeholder showProgress:(BOOL)show completed:(SDCompletedBlock)completed;

+ (void)didReciveMemoryWarning;


+ (void)downloadSetImageWithUrlPath:(NSString *)path
nameUrl:(NSString *)name completed:(SDDownloadCompletedBlock)completed;

+ (void)imageView:(UIImageView *)imageView imageName:(NSString *)imageName placeHolder:(NSString *)placeholder showProgress:(BOOL)show;

@end
